<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>用户登录</title>
    <link href="./static/bootstrap/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container">
    <div class="row justify-content-center mt-5">
        <div class="col-md-6">
            <div class="card">
                <div class="card-header">用户登录</div>
                <div class="card-body">
                    <div style="color: red">${message}</div>
                    <form  action="${pageContext.request.contextPath}/userLogin" method="post">
                        <div class="form-group">
                            <label for="username">用户名</label>
                            <input type="text" class="form-control" id="username" name="username" value="${username}"
                                   placeholder="请输入用户名" required>
                        </div>
                        <div class="form-group">
                            <label for="password">密码</label>
                            <input type="password" class="form-control" id="password" name="password"
                                   value="${password}" placeholder="请输入密码" required>
                        </div>
                        <button type="submit" class="btn btn-primary w-100 mt-3">登录</button>
                    </form>
                    <div class="mt-3 text-center">
                        <a href="${pageContext.request.contextPath}/userRegister">没有账号？去注册</a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

<script src="./static/bootstrap/js/bootstrap.bundle.min.js"></script>
</body>
</html>